<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 加载部部样式及META信息 -->
    <title>管理员</title>
    <div th:replace="common/meta"></div>
    <script>
        require.config.jsname = "backend/fuser/index";
        require.config.modulename = "admin"
        require.config.controllername = "auth.admin"
        require.config.actionname = "admin"
        require.config.moduleurl = "/admin/add"
    </script>
</head>
<body class="inside-header inside-aside is-dialog">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <div class="content">
                        <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator"
                              method="POST" action="/sys/fuser/save">
                            <input type="hidden" name="id"  th:value="${fuser.id}">
                                            <div class="form-group">
                                                <label for="username"
                                                       class="control-label col-xs-12 col-sm-2">用户名:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="username" name="username"
                                                           th:value="${fuser.username}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="password"
                                                       class="control-label col-xs-12 col-sm-2">密码:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="password" name="password"
                                                           th:value="${fuser.password}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="email"
                                                       class="control-label col-xs-12 col-sm-2">邮箱:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="email" name="email"
                                                           th:value="${fuser.email}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="phone"
                                                       class="control-label col-xs-12 col-sm-2">手机:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="phone" name="phone"
                                                           th:value="${fuser.phone}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="sex"
                                                       class="control-label col-xs-12 col-sm-2">性别:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="sex" name="sex"
                                                           th:value="${fuser.sex}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="avatar"
                                                       class="control-label col-xs-12 col-sm-2">头像:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="avatar" name="avatar"
                                                           th:value="${fuser.avatar}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="open_id"
                                                       class="control-label col-xs-12 col-sm-2">微信id:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="open_id" name="open_id"
                                                           th:value="${fuser.open_id}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="status"
                                                       class="control-label col-xs-12 col-sm-2">状态:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="status" name="status"
                                                           th:value="${fuser.status}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="city"
                                                       class="control-label col-xs-12 col-sm-2">城市:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="city" name="city"
                                                           th:value="${fuser.city}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="country"
                                                       class="control-label col-xs-12 col-sm-2">国家:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="country" name="country"
                                                           th:value="${fuser.country}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="province"
                                                       class="control-label col-xs-12 col-sm-2">省份:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="province" name="province"
                                                           th:value="${fuser.province}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label for="nickname"
                                                       class="control-label col-xs-12 col-sm-2">昵称:</label>
                                                <div class="col-xs-12 col-sm-8">
                                                    <input type="text" class="form-control" id="nickname" name="nickname"
                                                           th:value="${fuser.nickname}"
                                                           data-rule="required"/>
                                                </div>
                                            </div>
                        <div class="form-group hidden layer-footer">
                            <label class="control-label col-xs-12 col-sm-2"></label>
                            <div class="col-xs-12 col-sm-8">
                                <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                <button type="reset" class="btn btn-default btn-embossed">重置</button>
                            </div>
                        </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="common/script"></div>
</body>
